package com.example.shirodemo.services.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.shirodemo.entities.User;
import com.example.shirodemo.mapper.UserMapper;
import com.example.shirodemo.services.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByName(String username) {
        return this.baseMapper.findByName(username);
    }
}
